﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 教师管理系统
{
    /// <summary>
    /// 用户类
    /// </summary>
    public partial class User
    {
        /// <summary>
        /// 创建一个新用户
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="password">密码</param>
        /// <param name="realname">真实姓名</param>
        /// <param name="identy">用户身份</param>
        /// <param name="grade">年级</param>
        /// <param name="_class">班级</param>
        /// <param name="controlclass">管理班级</param>
        /// <param name="lesson">教授课程</param>
        /// <param name="resetqusetion">密码重设问题</param>
        /// <param name="resetanswer">密码重设问题答案</param>
        public User(string username,string password,string realname,string identy,string grade,string _class,string controlclass,string lesson,string resetqusetion,string resetanswer)
        {            
            UserName = username;
            Password = password;
            RealName = realname;
            Identy = identy;
            Grade = grade;
            Class = _class;
            ControlClass = controlclass;
            Lesson = lesson;
            ReSetQuestion = resetqusetion;
            ReSetAnswer = resetanswer;
        }
        //BMK TESTS
        public User(string realname)
        {
            RealName = realname;
        }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 用户身份
        /// </summary>
        public string Identy { get; set; }
        /// <summary>
        /// 年级
        /// </summary>
        public string Grade { get; set; }
        /// <summary>
        /// 班级
        /// </summary>
        public string Class { get; set; }
        /// <summary>
        /// 管理班级
        /// </summary>
        public string ControlClass { get; set; }
        /// <summary>
        /// 教授课程
        /// </summary>
        public string Lesson { get; set; }
        /// <summary>
        /// 密码重设问题
        /// </summary>
        public string ReSetQuestion { get; set; }
        /// <summary>
        /// 密码重设问题答案
        /// </summary>
        public string ReSetAnswer { get; set; }
    }
}
